package com.nnnu.wsnackshop.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(description = "商品 VO")
public class ProductVO {
    @Schema(description = "商品ID")
    private Integer id;

    @Schema(description = "门店ID")
    private Integer storeId;

    @Schema(description = "门店名称")
    private String storeName;

    @Schema(description = "分类ID")
    private Integer categoryId;

    @Schema(description = "分类名称")
    private String categoryName;

    @Schema(description = "品牌名称")
    private String brand;

    @Schema(description = "品牌id")
    private Integer brandId;

    @Schema(description = "商品名称")
    private String name;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "主图URL")
    private String mainImage;

    @Schema(description = "商品多图URL列表")
    private List<String> images;

    @Schema(description = "状态（0=inactive,1=active）")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;

    @Schema(description = "SPU ID")
    private Integer spuId;

    @Schema(description = "SPU 标题")
    private String spuTitle;

    @Schema(description = "商品价格（从SKU中获取的最低价格）")
    private BigDecimal price;

    @Schema(description = "商品原价（从SKU中获取的最高价格）")
    private BigDecimal originalPrice;

    @Schema(description = "折扣百分比（100表示无折扣）")
    private Integer discount;

    @Schema(description = "商品销量")
    private Integer sales;

    @Schema(description = "商品总库存")
    private Integer stock;

    @Schema(description = "默认SKU ID")
    private Integer skuId;
}
